package wj.tree;

import wj.WJValue;

public class StringLengthNode implements WJNode{

	private WJNode stringNode;
	
	public StringLengthNode(WJNode stringNode){
		this.stringNode = stringNode;
	}
	
	@Override
	public WJValue evaluate() {
		return new WJValue(stringNode.evaluate().toString().length());
	}

}
